﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="ListCategories.aspx.cs" Inherits="ProjectSem3.Admin.WebForm20" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentTabs" runat="server">
<li><a href="Supplier.aspx"><span>Supplier</span></a></li>
        <li><a href="ListSupplier.aspx"><span>List Supplier</span></a></li>
        <li><a href="Categories.aspx"><span>Categories</span></a></li>
        <li><a href="ListCategories.aspx"><span>List Categories</span></a></li>
    </ul>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="contentPage" runat="server">
<div class="grid_9">
                <h1 class="content_edit">Categories</h1>          
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
                    DataSourceID="LinqDataSource1" CellPadding="4" DataKeyNames="CategoryID" 
                    ForeColor="#333333" GridLines="None">
    <AlternatingRowStyle BackColor="White" />
    <Columns>
        <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" 
            ShowSelectButton="True" />
        <asp:BoundField DataField="CategoryID" HeaderText="CategoryID" ReadOnly="True" 
            SortExpression="CategoryID" InsertVisible="False" />
        <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
        <asp:CheckBoxField DataField="Status" HeaderText="Status" 
            SortExpression="Status" />
    </Columns>
    <EditRowStyle BackColor="#2461BF" />
    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
    <RowStyle BackColor="#EFF3FB" />
    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
    <SortedAscendingCellStyle BackColor="#F5F7FB" />
    <SortedAscendingHeaderStyle BackColor="#6D95E1" />
    <SortedDescendingCellStyle BackColor="#E9EBEF" />
    <SortedDescendingHeaderStyle BackColor="#4870BE" />
</asp:GridView>
                <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
                    ContextTypeName="ProjectSem3.dataDataContext" EntityTypeName="" OrderBy="CategoryID" 
                    TableName="Categories" EnableDelete="True" EnableInsert="True" 
                    EnableUpdate="True">
                </asp:LinqDataSource>
            </div>
  
</asp:Content>
